<?php
/**
 * Created by PhpStorm.
 * User: ArH
 * Date: 2018/3/24
 * Time: 下午6:00
 */
namespace plugins\RongCloud;
use app\common\controller\Plugin;

require ROOT_PATH.'plugins/RongCloud/API/rongcloud.php';

class RongCloud extends Plugin{



    public function getToken($user_id,$username,$avatar_url){
        $config = $this->getConfigValue();
        $RongCloud = new RongCloud($config['ak'],$config['sk']);
        return $RongCloud->user()->getToken($user_id,$username,$avatar_url);

    }



    public function install()
    {
        // TODO: Implement install() method.
    }
    public function uninstall()
    {
        // TODO: Implement uninstall() method.
    }
}